package com.jingdianjichi.subject.application.comvert;

import com.jingdianjichi.subject.application.dto.SubjectCategoryDTO;
import com.jingdianjichi.subject.domain.entity.SubjectCategoryBO;
import org.mapstruct.Mapper;

import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface SubjectCategoryDTOConverter {
    SubjectCategoryDTOConverter INSTANCE=Mappers.getMapper(SubjectCategoryDTOConverter.class);
    SubjectCategoryBO convertDtoToCategoryBO(SubjectCategoryDTO subjectCategoryDTO);


    List<SubjectCategoryDTO> convertSubjectCategoryBOListToSubjectCategoryDTOList(List<SubjectCategoryBO> subjectCategoryBOList);

    SubjectCategoryDTO convertBoToCategoryDTO(SubjectCategoryBO categoryBO);
}
